﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Structures
{
    public class PubDirPersonal : PubDirContactBase
    {
        public override PubDirContactGender Gender
        {
            get
            {
                if (_gender == 0)
                    return PubDirContactGender.Undefined;
                else
                    return _gender == 1 ? PubDirContactGender.Male : PubDirContactGender.Female;
            }
            set
            {
                if (value == PubDirContactGender.Undefined)
                    _gender = 0;
                else
                    _gender = (byte)(value == PubDirContactGender.Male ? 0x01 : 0x02);
            }
        }
    }
}
